package com.xyz.service;

import com.xyz.util.dto.DataResult;
import com.xyz.util.dto.LoginInfo;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

import java.util.Map;

public interface MessageService {

    SseEmitter connect(String token);

    void sendMessage(Map<String, Map<String, Object>> map);

    DataResult selectMessage(LoginInfo li, int pageNum, int pageSize, int messageType) throws Exception;

    DataResult updateMessageState(LoginInfo li, long id) throws Exception;

}
